package cn.itcast.bos.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.StandardDao;
import cn.itcast.bos.domain.base.Standard;
import cn.itcast.bos.service.StandardService;
@Service
@Transactional
public class StandardServiceImpl implements StandardService {
	//注入Dao
	@Autowired
	private StandardDao standardDao;
	@Override
	public void save(Standard standard) {
		//直接交给dao处理到数据库
		standardDao.save(standard);
	}
	@Override
	public Page<Standard> findPageDate(Pageable pageable) {
		return standardDao.findAll(pageable);
	}
	@Override
	public List<Standard> findAll() {
		return standardDao.findAll();
	}
	/*@Override
	public void StandardSave(String[] split) {
		for (String sSave: split) {
			standardDao.StandardSave(sSave);
		}
		
	}
	@Override
	public void StandardDel(String[] split) {
		for (String sDel: split) {
			standardDao.StandardDel(sDel);
		}
		
	}*/
}
